import { ElMessage } from "element-plus";
import "element-plus/theme-chalk/el-message.css";

export const message = {
  success(text) {
    ElMessage({ message: text, type: "success", duration: 2500 });
  },
  error(text) {
    ElMessage({ message: text, type: "error", duration: 3000 });
  },
  warning(text) {
    ElMessage({ message: text, type: "warning", duration: 3000 });
  },
  info(text) {
    ElMessage({ message: text, type: "info", duration: 2500 });
  }
};
